// 导入vue
import Vue from 'vue'

// 导入VueRouter
import VueRouter from 'vue-router'

// 导入view组件
import Login from '../view/login'
import Article from '../view/article'
import List from '../view/list'
import Register from '../view/register'

// 使用VueRouter
Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      // 路劲
      path: '/login',
      component: Login
    },
    {
      // 路劲
      path: '/article',
      component: Article
    },
    {
      // 路劲
      path: '/list',
      component: List
    },
    {
      // 路劲
      path: '/register',
      component: Register
    }
  ]
})

export default router
